﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="Token.Piker.Web.Admin.Tag.List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>标签管理</title>
    <style type="text/css">
        .add
        {
            padding-right: 10px;
            padding-bottom: 10px;
        }
        .add a
        {
            float: right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p class = "add">
        <a href="Add.aspx">添加</a></p>
    <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="98%" CellPadding="3"
        OnPageIndexChanging="gridView_PageIndexChanging" BorderWidth="1px" DataKeyNames="ID"
        AutoGenerateColumns="false" PageSize="10"
        RowStyle-HorizontalAlign="Center">
        <Columns>
            <asp:BoundField DataField="TagName" HeaderText="标签名" ItemStyle-HorizontalAlign="Center" />
            <asp:TemplateField HeaderText = "添加人" ItemStyle-HorizontalAlign="Center" >
                <ItemTemplate>
                    <%# GetAdderName(Eval("Adder")) %>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" ItemStyle-HorizontalAlign="Center" />
            <asp:TemplateField  HeaderText="类别" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <%# Eval("Flag").ToString()=="0"?"内容标签":"风格标签" %> 
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="ID"
                DataNavigateUrlFormatString="Modify.aspx?id={0}" Text="编辑" />
        </Columns>
    </asp:GridView>
</asp:Content>
